Index: ioemu/hw/iommu.c
===================================================================
---- ioemu.orig/hw/iommu.c 2006-07-26 15:17:35.639762285 +0100
-+++ ioemu/hw/iommu.c 2006-07-26 15:17:39.078387722 +0100
+--- ioemu.orig/hw/iommu.c 2006-07-27 09:04:53.000000000 -0600
++++ ioemu/hw/iommu.c 2006-07-27 09:05:01.000000000 -0600
@@ -82,7 +82,11 @@
#define IOPTE_VALID 0x00000002 /* IOPTE is valid */
#define IOPTE_WAZ 0x00000001 /* Write as zeros */
Index: ioemu/cpu-all.h
===================================================================
---- ioemu.orig/cpu-all.h 2006-07-26 15:17:38.728425843 +0100
-+++ ioemu/cpu-all.h 2006-07-26 15:17:39.079387613 +0100
+--- ioemu.orig/cpu-all.h 2006-07-27 09:05:01.000000000 -0600
++++ ioemu/cpu-all.h 2006-07-27 09:05:01.000000000 -0600
@@ -835,6 +835,31 @@
:"=m" (*(volatile long *)addr)
:"dIr" (nr));
/* memory API */
Index: ioemu/vl.c
===================================================================
---- ioemu.orig/vl.c 2006-07-26 15:17:39.011395020 +0100
-+++ ioemu/vl.c 2006-07-26 21:11:35.957492161 +0100
+--- ioemu.orig/vl.c 2006-07-27 09:05:01.000000000 -0600
++++ ioemu/vl.c 2006-07-27 09:09:29.000000000 -0600
@@ -5577,6 +5577,7 @@
exit(-1);
}
+ }
+
+ if (xc_ia64_get_pfn_list(xc_handle, domid, page_array,
-+ nr_pages + (GFW_SIZE >> PAGE_SHIFT), 1)!= 1){
++ IO_PAGE_START >> PAGE_SHIFT, 1) != 1) {
+ fprintf(logfile, "xc_ia64_get_pfn_list returned error %d\n", errno);
+ exit(-1);
+ }
+ PROT_READ|PROT_WRITE,
+ page_array[0]);
+
-+ fprintf(logfile, "shared page at pfn:%lx, mfn: %l016x\n",
++ fprintf(logfile, "shared page at pfn:%lx, mfn: %016lx\n",
+ IO_PAGE_START >> PAGE_SHIFT, page_array[0]);
+#endif
#else /* !CONFIG_DM */
#ifdef CONFIG_SOFTMMU
Index: ioemu/target-i386-dm/exec-dm.c
===================================================================
---- ioemu.orig/target-i386-dm/exec-dm.c 2006-07-26 15:17:38.283474311 +0100
-+++ ioemu/target-i386-dm/exec-dm.c 2006-07-26 15:17:39.081387395 +0100
+--- ioemu.orig/target-i386-dm/exec-dm.c 2006-07-27 09:05:01.000000000 -0600
++++ ioemu/target-i386-dm/exec-dm.c 2006-07-27 09:05:01.000000000 -0600
@@ -340,6 +340,23 @@
return io_mem_read[io_index >> IO_MEM_SHIFT];
}
len -= l;
Index: ioemu/exec-all.h
===================================================================
---- ioemu.orig/exec-all.h 2006-07-26 15:17:38.200483351 +0100
-+++ ioemu/exec-all.h 2006-07-26 21:11:41.262898983 +0100
+--- ioemu.orig/exec-all.h 2006-07-27 09:05:01.000000000 -0600
++++ ioemu/exec-all.h 2006-07-27 09:05:01.000000000 -0600
@@ -462,12 +462,13 @@
}
#endif
Index: ioemu/target-i386-dm/cpu.h
===================================================================
---- ioemu.orig/target-i386-dm/cpu.h 2006-07-26 15:17:38.282474420 +0100
-+++ ioemu/target-i386-dm/cpu.h 2006-07-26 15:17:39.082387287 +0100
+--- ioemu.orig/target-i386-dm/cpu.h 2006-07-27 09:05:01.000000000 -0600
++++ ioemu/target-i386-dm/cpu.h 2006-07-27 09:05:01.000000000 -0600
@@ -80,7 +80,11 @@
/* helper2.c */
int main_loop(void);
Index: ioemu/ia64_intrinsic.h
===================================================================
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
-+++ ioemu/ia64_intrinsic.h 2006-07-26 15:17:39.083387178 +0100
++++ ioemu/ia64_intrinsic.h 2006-07-27 09:05:01.000000000 -0600
@@ -0,0 +1,276 @@
+#ifndef IA64_INTRINSIC_H
+#define IA64_INTRINSIC_H
}
if (xc_ia64_get_pfn_list(xc_handle, domid, page_array,
- nr_pages + (GFW_SIZE >> PAGE_SHIFT), 1)!= 1){
+ IO_PAGE_START >> PAGE_SHIFT, 1) != 1) {
fprintf(logfile, "xc_ia64_get_pfn_list returned error %d\n", errno);
exit(-1);
}
PROT_READ|PROT_WRITE,
page_array[0]);
- fprintf(logfile, "shared page at pfn:%lx, mfn: %l016x\n",
+ fprintf(logfile, "shared page at pfn:%lx, mfn: %016lx\n",
IO_PAGE_START >> PAGE_SHIFT, page_array[0]);
#endif
#else /* !CONFIG_DM */